package com.zhaoyu.apis.article;

import com.zhaoyu.model.article.dto.ArticleHomeDto;
import com.zhaoyu.model.article.dto.ArticleInfoDto;
import com.zhaoyu.model.article.pojos.ApArticle;
import com.zhaoyu.model.common.dtos.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

@Api(value = "APP文章信息管理",description = "APP文章信息管理api接口,提供保存app文章、加载首页文章、加载更多首页文章、加载最新首页文章、" +
                                           "加载文章详情等功能")
public interface ApArticleControllerApi {

    @ApiOperation("保存app文章")
    ApArticle saveApArticle(ApArticle apArticle);

    @ApiOperation("加载首页文章")
    ResponseResult loadApArticle(ArticleHomeDto articleHomeDto);

    @ApiOperation("加载更多首页文章")
    ResponseResult loadMoreApArticle(ArticleHomeDto articleHomeDto);

    @ApiOperation("加载最新首页文章")
    ResponseResult loadNewApArticle(ArticleHomeDto articleHomeDto);

    @ApiOperation("加载文章详情")
    ResponseResult loadApArticleInfo(ArticleInfoDto articleInfoDto);

}